package com.xian.ucenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xian.ucenter.entities.PostTag;
import com.xian.ucenter.mapper.PostTagMapper;
import com.xian.ucenter.service.PostTagService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xian
 * @since 2022/07/25 22:51
 */
@Service
public class PostTagServiceImpl extends ServiceImpl<PostTagMapper, PostTag> implements PostTagService {
    @Autowired
    private PostTagMapper postTagMapper;
    @Override
    public void removePostTagByPostId(String id) {
        postTagMapper.delete(new QueryWrapper<PostTag>().eq("post_id",id));
    }
}
